package com.wn.entity;

import com.wn.validation_group.NcrAddGroup;
import com.wn.validation_group.NcrUpdateGroup;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 不符合项报告表
 * @author wuqingting
 * @date 2022/10/18
 */
@Data
public class Nonconformance {
    @Min(value = 1,groups = NcrUpdateGroup.class,message = "id错误")
    private int id;
//    @Valid
    private Hr user;//发起人
    @Valid
    private Project project;//项目
//    @NotEmpty(groups = NcrAddGroup.class,message = "发起时间不能为空")
    private String startTime;//发起时间
    @NotEmpty(groups = NcrAddGroup.class,message = "编号不能为空")
    private String identifier;//编号
    @NotEmpty(groups = NcrAddGroup.class,message = "不符合项内容不能为空")
    private String profile;//不符合项内容
    @Valid
    private InventoryBookkeeping inventoryBookkeeping;//库存物料
    @NotEmpty(groups = NcrAddGroup.class,message = "依据文件不能为空")
    private String basisDocuments;//依据文件
    @NotEmpty(groups = NcrUpdateGroup.class,message = "处理措施不能为空")
    private String treatmentMeasures;//处理措施
    private String activitiInstanceId;//流程实例id

    private String selectStartTime;//用于多条件分页查询,开始时间
    private String selectEndTime;

    private String activitiState;//用于页面显示流程状态

}
